export function exportExcelUtil(file: any, fileName: string, type?: string) {
  const link = document.createElement("a");
  const blob = new Blob([file], {
    type: type || "application/vnd.ms-excel"
  }); //这个是Content-Typele的type类型（https://tool.oschina.net/commons）   "application/vnd.ms-excel"
  const url = window.URL.createObjectURL(blob);
  link.href = url;
  link.download = fileName;
  link.click();
  window.URL.revokeObjectURL(url);
  link.remove();
}
